package com.szx.kaihei.exceptions;

import lombok.Data;

@Data
public class CustomException extends RuntimeException{

    private int code;
    private String message;

    public CustomException(ExceptionEnums errorEnums) {
        super(errorEnums.msg);
        this.code = errorEnums.code;
        this.message = errorEnums.msg;
    }



}
